package trip

class AirportMapping{

  String name
  String iata
  String city
  String state
  String country = "US"
  String lat
  String lng
  
  static constraints = {
    name(blank:false)
    iata(maxSize:3)
    state(maxSize:2)
    lat(blank:false)
    lng(blank:false)
	city(blank:true, nullable:true)
	state(blank:true, nullable:true)
  }
  
  
  String toString(){
    "${iata} - ${name}"
  }
}

/*
    
    <!-- script src="http://maps.google.com/maps/api/js?key=AIzaSyDZFKubFr4RrA_-QMwAReiNzVeGSHyY__M&sensor=true"
      type="text/javascript"></script-->
      
    <g:javascript library="prototype" />
 */